package com.yuanfengPlus.inventory.controller;



import com.yuanfengPlus.inventory.entity.Inventory;
import com.yuanfengPlus.inventory.service.IInventoryService;
import com.yuanfengPlus.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/inventory")
public class InventoryController {
    @Autowired
    private IInventoryService iis;

    @GetMapping("/queryInventory")

    public Result<List<Inventory>> queryInventory(@RequestBody Map<String,Object> params){
        return iis.queryInventory(params);
    }


}
